const {ccclass, property} = cc._decorator;

@ccclass
export default class dynamicLoadSprite extends cc.Component {

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        
    }

    start () {
        // cc.resources.load('sprite/newhero', (err, asset) => {
        //     console.log(asset);
        //     this.getComponent(cc.Sprite).spriteFrame = asset;
        // });
        cc.resources.load("prefab/test01", function (err, prefab) {
            var newNode = cc.instantiate(prefab);
            console.log(newNode);
            
        });
    }

    // update (dt) {}
}
